/**
 * Created by henian.xu on 2018/3/16.
 *
 */
import React from 'react';
import Home from '../view/home';
import Settings from '../view/settings';

import {
    StackNavigator,
    TabNavigator,
} from 'react-navigation';

const Root = TabNavigator(
    {
        home: {
            screen: Home,
        },
        settings: {
            screen: Settings,
        },
    },
    {
        animationEnabled: true,
        swipeEnabled: true,
        // tabBarComponent: TabBar,
        tabBarPosition: 'bottom',
        tabBarOptions: {
            // showLabel: false,
        },
    },
);

export default StackNavigator(
    {
        Root: {
            screen: Root,
        },
    },
    {
        navigationOptions() {
        },
    },
);
